package com.ruoyi.jwyz.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jwyz.mapper.UserAttendActivityMapper;
import com.ruoyi.jwyz.domain.UserAttendActivity;
import com.ruoyi.jwyz.service.IUserAttendActivityService;

/**
 * 用户参与约会(User_Attend_Activity)Service业务层处理
 * 
 * @author lxp
 * @date 2023-03-31
 */
@Service
public class UserAttendActivityServiceImpl extends ServiceImpl<UserAttendActivityMapper,UserAttendActivity> implements IUserAttendActivityService
{
    @Autowired
    private UserAttendActivityMapper userAttendActivityMapper;

    /**
     * 查询用户参与约会(User_Attend_Activity)
     * 
     * @param id 用户参与约会(User_Attend_Activity)主键
     * @return 用户参与约会(User_Attend_Activity)
     */
    @Override
    public UserAttendActivity selectUserAttendActivityById(Long id)
    {
        return userAttendActivityMapper.selectUserAttendActivityById(id);
    }

    /**
     * 查询用户参与约会(User_Attend_Activity)列表
     * 
     * @param userAttendActivity 用户参与约会(User_Attend_Activity)
     * @return 用户参与约会(User_Attend_Activity)
     */
    @Override
    public List<UserAttendActivity> selectUserAttendActivityList(UserAttendActivity userAttendActivity)
    {
        return userAttendActivityMapper.selectUserAttendActivityList(userAttendActivity);
    }

    /**
     * 新增用户参与约会(User_Attend_Activity)
     * 
     * @param userAttendActivity 用户参与约会(User_Attend_Activity)
     * @return 结果
     */
    @Override
    public int insertUserAttendActivity(UserAttendActivity userAttendActivity)
    {
        return userAttendActivityMapper.insertUserAttendActivity(userAttendActivity);
    }

    /**
     * 修改用户参与约会(User_Attend_Activity)
     * 
     * @param userAttendActivity 用户参与约会(User_Attend_Activity)
     * @return 结果
     */
    @Override
    public int updateUserAttendActivity(UserAttendActivity userAttendActivity)
    {
        return userAttendActivityMapper.updateUserAttendActivity(userAttendActivity);
    }

    /**
     * 批量删除用户参与约会(User_Attend_Activity)
     * 
     * @param ids 需要删除的用户参与约会(User_Attend_Activity)主键
     * @return 结果
     */
    @Override
    public int deleteUserAttendActivityByIds(Long[] ids)
    {
        return userAttendActivityMapper.deleteUserAttendActivityByIds(ids);
    }

    /**
     * 删除用户参与约会(User_Attend_Activity)信息
     * 
     * @param id 用户参与约会(User_Attend_Activity)主键
     * @return 结果
     */
    @Override
    public int deleteUserAttendActivityById(Long id)
    {
        return userAttendActivityMapper.deleteUserAttendActivityById(id);
    }
}
